package com.qcby.llmtchstd.entity;

import com.google.gson.annotations.Expose;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class Message {
    @Expose
    private int id;

    @Expose
    private int senderId;

    @Expose
    private String senderName;

    @Expose
    private String senderType;

    @Expose
    private String content;

    @Expose
    private LocalDateTime sendTime;

    @Expose
    List<User> userList = new ArrayList<>();
    @Expose
    private Integer receiverId;

    @Expose
    private String receiverType;

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    public String getReceiverType() {
        return receiverType;
    }

    public void setReceiverType(String receiverType) {
        this.receiverType = receiverType;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public int getSenderId() {
        return senderId;
    }

    public void setSenderId(int senderId) {
        this.senderId = senderId;
    }

    public String getSenderType() {
        return senderType;
    }

    public void setSenderType(String senderType) {
        this.senderType = senderType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", senderId=" + senderId +
                ", senderName=" + senderName +
                ", senderType='" + senderType + '\'' +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                ", userList=" + userList +
                ", receiverId=" + receiverId +
                ", receiverType='" + receiverType + '\'' +
                '}';
    }
}
